import { get, post } from "@/utils/request"
const LOGIN = {
  PublicKey: '/rsa/publicKey',
  Login: '/login',
  UserInfo: '/user/info',
  Logout: '/logout',
}

// 获取公钥
export const getPublicKey = async() => get(LOGIN.PublicKey)

// 用户登录
export const loginApi = async(params: any) =>
  post(LOGIN.Login, params)

// 获取用户信息
export const getUserInfo = async() => get(LOGIN.UserInfo)

// 退出登录
export const logOut = async() => get(LOGIN.Logout)
